package com.captjack.core.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;

/**
 * Description description.....
 *
 * @author Jack Sparrow
 * @version 1.0.0
 * @date 2018/5/12 12:17
 * package com.captjack.wechat.interceptor
 */
public class TestInterceptor implements Interceptor {

    @Override
    public void intercept(Invocation invocation) {
        System.out.println("Before method invoking");
        System.out.println(invocation.getMethod().getName());
//        invocation.getController().render("/index.html");
        invocation.invoke();
        System.out.println("After method invoking");
    }

}
